home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2351 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  661 b 

  1. Path: news.production.compuserve.com!news
  2. From: Holger Maier <100336.3326@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q:order of evaluation
  5. Date: 17 Jan 1996 06:43:23 GMT
  6. Organization: DLZ Heidelberg
  7. Message-ID: <4di5qb$qda$1@mhadg.production.compuserve.com>
  8. References: <4dfhlu$a33$1@mhafn.production.compuserve.com>
  9.  
  10. Please note that in
  11.   int i=1;int j=i+(i+=1);
  12. the value of i is modified only once. The ARM states that an 
  13. expression where a value is modified more than once is undefined 
  14. (ie: i = i++; ). But since i is not modified multiply and assignment
  15. returns the assigned value, this expression should be reasonable.
  16. Any comments??
  17. Holger
  18.